#include<stdio.h>
int main() {
    int age = 0;
    scanf("%d", &age);
    if (age <= 18)
    {
        printf("lad\n");
    }
    else
    {
        if (18 <= age && age <= 44)
        {
            printf("teenager\n");
        }
        else
        {
            if (45 <= age && age <= 59)
            {
                printf("middle-aged and old people");
            }
            else
            {
                if (60 <= age && age <= 89)
                {
                    printf("old people");
                }
                else
                {
                    if (age <= 90) 
                    {
                        printf("god of longevity");
                    }
                }
            }
        }
    }
    return 0;
}